package regex;

import java.util.regex.Pattern;

/**
 * Created by 王念 on 2016/4/10.
 */
public class RegexTest {
    public static void main(String[] args) {
        boolean boo= Pattern.matches("http://tieba.baidu.com/f\\?kw=&ie=utf-8&pn=.*","http://tieba.baidu.com/f?kw=&ie=utf-8&pn=1");
        System.out.println(boo);
    }
}
